<template>
  <div id="app">
    <img src="./assets/logo.png">
    <TopBarComponent></TopBarComponent>
    <p>
      <span v-text="$route.name"></span>
      <span v-text="$route.params.id"></span>
    </p>
    <!--<transition name="fade" mode="out-in">-->
      <router-view/>
    <!--</transition>-->

    <div>
      <div class="menu">
        <router-view name="leftMenu"/>
      </div>
      <div class="content">
        <router-view name="rightContent"/>
      </div>
      <div class="clearfix"></div>
    </div>

  </div>
</template>

<script>
import TopBarComponent from '@/components/common/TopBar'

export default {
  name: 'app',
  components: {
    TopBarComponent
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>

<style scoped>
  .menu{
    float: left;
    width: 20%;
    height: 200px;
    border: 1px solid #ccc;
  }
  .content{
    float: right;
    width: 78%;
    height: 200px;
    border: 1px solid #ccc;
  }
  .clearfix{
    clear: both;
  }

  .fade-enter-active, .fade-leave-active {
    transition: opacity 1s
  }
  .fade-enter, .fade-leave-to /* .fade-leave-active in below version 2.1.8 */ {
    opacity: 0
  }
</style>
